<%@ page pageEncoding="UTF-8" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <title>教师表</title>
    <style type="text/css">
        .title {
            font-size: large;
        }
    </style>
</head>
<body>
<a href="admin/teacheradd.jsp">添加教师</a>
<table border="1">
    <caption class="title">管理员-教师表</caption>
    <tr>
        <th>教师编号</th>
        <th>姓名</th>
        <th>用户名</th>
        <th>密码</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${lstv}" var="lstt">
        <tr><c:forEach items="${lstt}" var="ob">
            <td>${ob}</td>
        </c:forEach>
            <td><a href="${ctx}/TeacherPreUpdateAction?t_id=${lstt[0]}">修改</a>
                <a href="${ctx}/TeacherDeleteAction?t_id=${lstt[0]}" onclick="return confirm('是否确认删除?')">删除</a></td>
        </tr>
    </c:forEach>
</table>
<a href="admin/adminmain.jsp">返回主页</a>
</body>
</html>
